<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>内边距</title>
    <style>
        #d1{
            width: 500px;
            height: 500px;
            border: 1px solid #000000;
            padding:30px;
        }

        #d11{
            width:200px;
            height:200px;
            background: hotpink;
            /*padding-left:30px;*/
            /*padding-top:30px;*/
            /*padding-right:30px;*/
            /*padding-bottom: 30px;*/
            /*padding:30px;*/
        }
        #d12{
             width:200px;
            height:200px;
            background: green;
        }
    </style>
</head>
<body>
    <div id="d1">
        <div id="d11">
            这是d11
        </div>
        <div id="d12"></div>
    </div>

</body>
</html>